
import { ConfigJsonBase } from "./ConfigJsonBase";

export class Config_serverlist extends ConfigJsonBase {
  public static NAME:string = "serverlist"
 public id:number;
 public zone_id:number;
 public name:string;
 public ip:string;
 public port:number;
 public gm_port:number;
 public status:number;
 public server_type:number;
 public android_switch:number;
 public ios_switch:number;
 public online_num:number;
 public static configList:Array<Config_serverlist> = []
 public static json2Object(json: any) {
        for (const key in json) {
            let config:Config_serverlist = new Config_serverlist()
config.id = json[key]["id"];
config.zone_id = json[key]["zone_id"];
config.name = json[key]["name"];
config.ip = json[key]["ip"];
config.port = json[key]["port"];
config.gm_port = json[key]["gm_port"];
config.status = json[key]["status"];
config.server_type = json[key]["server_type"];
config.android_switch = json[key]["android_switch"];
config.ios_switch = json[key]["ios_switch"];
config.online_num = json[key]["online_num"];
 this.configList.push(config)
}
}
    
}
    